/* Magic Mirror Config Sample
 *
 * By Michael Teeuw http://michaelteeuw.nl
 * MIT Licensed.
 *
 * For more information how you can configurate this file
 * See https://github.com/MichMich/MagicMirror#configuration
 *
 */

var config = {
	address: "localhost", // Address to listen on, can be:
	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
	                      // - another specific IPv4/6 to listen on a specific interface
	                      // - "", "0.0.0.0", "::" to listen on any interface
	                      // Default, when address config is left out, is "localhost"
	port: 8080,
	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
	                                                       // or add a specific IPv4 of 192.168.1.5 :
	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],

	language: "zh-cn",
	timeFormat: 24,
	units: "metric",

	modules: [
		{
			module: "alert",
		},
		{
		    module: 'MMM-BackgroundSlideshow',
		   position: 'fullscreen_below',
		    config: {
		          imagePaths: ['modules/MMM-BackgroundSlideshow/exampleImages/'],
		         transitionImages: true,
		          randomizeImageOrder: true
		        }
		},
	//	{
	//			module: "updatenotification",
	//			#position: "top_bar"
	//	},
		{
			module: "clock",
			position: "top_left",
			config: {
				// The config property is optional.
				// See 'Configuration options' for more information.
				displayType: "both",
				analogSize: "300px",
				analogFace: "face-010"
			}
		},
		{
			module: "calendar",
			header: "节假日",
			position: "top_left",
			config: {
				calendars: [
					{
						symbol: "calendar-check",
//						url: "https://www.calendarlabs.com/ical-calendar/ics/40/China_Holidays.ics"					
						url:"http://pi-home.cn:8081/China_Holidays.ics"
					}
				]
			}
		},
		//{
		//	module: "compliments",
		//	position: "lower_third"
		//},
		{
			module: "currentweather",
			position: "top_right",
			config: {
				location: "Chengdu",
				locationID: "1815286",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
				appid: "f89d6e62d396a4bfd7ea1260e4a52e4e"
			}
		},
		{
			module: "weatherforecast",
			position: "top_right",
			header: "Weather Forecast",
			config: {
				location: "Chengdu",
				locationID: "1815286",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
				appid: "f89d6e62d396a4bfd7ea1260e4a52e4e"
			}
		},
		{
		module: 'MMM-SystemStats',
			position: 'top_right', // This can be any of the regions.
			// classes: 'small dimmed', // Add your own styling. OPTIONAL.
			// header: 'System Stats', // Set the header text OPTIONAL
			config: {
				updateInterval: 10000, // every 10 seconds
				align: 'right', // align labels
				//header: 'System Stats', // This is optional
				units: 'metric', // default, metric, imperial
				view: 'textAndIcon',
				language: "zh-cn",
			},
		},
		//{
		//	module: "newsfeed",
		//	position: "bottom_bar",
		//	config: {
		//		feeds: [
		//			{
		//				title: "New York Times",
		//				url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
		//			}
		//		],
		//		showSourceTitle: true,
		//		showPublishDate: true,
		//		broadcastNewsFeeds: true,
		//		broadcastNewsUpdates: true
		//	}
		//},
	]

};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
